home *** CD-ROM | disk | FTP | other *** search
/ 1,000+ Great Games / 1_1000 Games.iso / DOSGAMES / BOGGLE.ZIP / SOURCE.ZIP / BOGGLE.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1996-03-03  |  970 b   |  34 lines

  1. /*****************************************************************************
  2. * Program:  BOGGLE.CPP
  3. * Purpose:  This begins the game by instantiating TBogWindow
  4. *****************************************************************************/
  5. #include  <iapp.hpp>
  6. #include  "bogwin.hpp"
  7.  
  8. /************************
  9. * Main Program      
  10. ************************/
  11. void main ()
  12. {
  13.    try {
  14.       TBogWindow tbog("Boggle Game", WND_MAINWIN);
  15.  
  16.       /******************************************
  17.       * Load the accelerators from the .rc file
  18.       ******************************************/
  19.       IAccelerator accelTable(WND_MAINWIN, &tbog);
  20.  
  21.       tbog.setFocus();
  22.       tbog.show();
  23.  
  24.       IApplication::current().run();
  25.    }
  26.    catch(IException& exc)
  27.    {
  28.       IMessageBox abortIt(IWindow::desktopWindow());
  29.       abortIt.setTitle("Exception Caught in Boggle.cpp");
  30.       abortIt.show(exc.text(), IMessageBox::okButton);
  31.    }
  32.    return;
  33. }
  34.